<%@ Page Language="C#" AutoEventWireup="true" CodeFile="patient_password.aspx.cs" Inherits="patient_patient_password" MasterPageFile="~/MainMaster.master" %>

<%@ MasterType VirtualPath="~/MainMaster.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="server">
    <div class="heading_inner">
        <div class="heading_topic">
            <h2>Password Recovery</h2>
        </div>
    </div>

    <div class="cl"></div>

    <!--**Content 1 Starts Here**-->

    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%">

            <table style="border:solid 1px #808080;"  cellpadding="0" cellspacing="0" width="549" align="center">
               


                <tr>
                 
                    <td align="left" style="height: 115px">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%" id="tblPassword" runat="server" style="padding:10px">
                            <tr>
                                <td  style="text-align:center" colspan="2">You will be sent an email with the password.<br />
                                    <br />
                                </td>
                            </tr>

                            <tr id="trerror" runat="server" visible="false">
                                <td colspan="2">
                                    <asp:Label runat="server" ID="msg_err" Font-Bold="True" ForeColor="Red" Visible="False" Width="100%"></asp:Label></td>
                            </tr>


                            <tr class="bodytxt">
                                <td style="width: 140px; text-align: right"><b>Email&nbsp; : &nbsp;</b></td>
                                <td>
                                    <asp:TextBox ID="txt_email" runat="server" CssClass="design" Width="220px"></asp:TextBox>
                                    <span style="color: #ff0000">*</span></td>
                            </tr>
                            <tr><td>&nbsp;</td></tr>
                            <tr class="bodytxt">
                                <td style="width: 140px; text-align: right"><b>Security question&nbsp; : &nbsp;</b></td>
                                <td>
                                    <asp:DropDownList ID="ddl_ques" runat="server" CssClass="mainselection" Width="225px">
                                    </asp:DropDownList>
                                    <span style="color: #ff0000">*</span></td>
                            </tr>
                            <tr><td>&nbsp;</td></tr>
                            <tr class="bodytxt">
                                <td style="width: 140px; text-align: right"><b>Security answer : &nbsp;</b></td>
                                <td>
                                    <asp:TextBox ID="txt_ans" runat="server" CssClass="design" Width="220px"></asp:TextBox>
                                    <span style="color: #ff0000">*</span></td>
                            </tr>
                            <tr>
                                <td colspan="2">&nbsp;</td>
                            </tr>
                            <tr class="bodytxt">
                                <td colspan="2" align="center" style="height: 21px">
                                    <asp:ImageButton ID="ibtn_submit" runat="server" Text="Submit" CssClass="buttonclass"
                                        OnClick="ibtn_submit_Click" /></td>
                            </tr>
                        </table>
                        <asp:Label ID="lblsuc" runat="server" CssClass="bodytxt"></asp:Label>
                    </td>
                  
                </tr>

               
            </table>

        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ScriptContent">
    <%if (tblPassword.Visible)
      { %>
    <script>
        var frmvalidator = new Validator("aspnetForm", "<%=ibtn_submit.ClientID%>");
        frmvalidator.addValidation("<%=txt_email.ClientID%>", "req", "Please Enter Email address.");
        frmvalidator.addValidation("<%=txt_ans.ClientID%>", "req", "Please Enter Answer to secret question.");
        frmvalidator.addValidation("<%=txt_email.ClientID%>", "email", "Not a correct email address");
    </script>
    <%} %>
</asp:Content>
